//
//  ThreeViewController.m
//  NXMainFrameObject
//
//  Created by 宋钢强 on 2018/4/13.
//  Copyright © 2018年 NiuTan. All rights reserved.
//

#import "ThreeViewController.h"
#import "UIButton+FRP.h"

@interface ThreeViewController ()

@end

@implementation ThreeViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    [self customNavItem];
}

- (void) customNavItem {
    
    self.title = @"发现";
    
    self.navigationController.navigationBar.tintColor = [UIColor grayColor];
    self.navigationController.navigationBar.barTintColor = [UIColor whiteColor];
   UIButton *rightBtn = [UIButton nx_initWith:^(UIButton *btn) {
        btn.nx_titleForState(@"2323",UIControlStateNormal);
        btn.nx_titleColorForState([UIColor blueColor],UIControlStateNormal);
        btn.nx_fontSize(12);
        btn.nx_imageForState(@"navigationbar_pop",UIControlStateNormal);
        btn.nx_imagePositionAndSpace(ButtonImagePositionStyleRight,3);
    }];

    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:rightBtn];
}

- (void)rightAction {
    
}

@end
